<!DOCTYPE html>
<html>
<head>
    <title>map的实现</title>
    <script src="../../src/array/map.js"></script>
</head>
<body>
    <script>
        var arr = [1, 2, 3, 4, 5];
        var result = map(arr, (item, index) => {
            return item * 10;
        });
        console.log(result) // [10, 20, 30, 40, 50]
    </script>
</body>
</html>